class Snow {
    constructor(scene,w = 200, h = 200) {
        this.w = w;
        this.h = h;
        this.lastFlake = null;
        //
        //
        //
        this.makeFlakes(scene);
    }
    makeFlakes(scene) {
        for (var i = 0; i < 250; i++) {
            var flake = new Flake(scene,this.w, this.h);
            //if the last flake exists 
            //place it as the prev flake
            if (this.lastFlake != null) {
                flake.prevFlake = this.lastFlake;
            }
            this.lastFlake = flake;
        }
    }
    update() {
    	//move the last flake
    	//this will start a chain reaction
        this.lastFlake.move();
    }
}